//
//  MyJSData.h
//  QSQ
//
//  Created by zuofeng on 15/11/3.
//  Copyright © 2015年 QianShengQian, Inc. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@protocol JsDataDelegate <NSObject>

@optional
//跳转web页代理
- (void)handleDataWithWebJs:(NSDictionary*)data;
//跳转产品详情页代理
- (void)handleDataWithProductJs:(NSDictionary*)data;
//跳转购买页代理
- (void)handleDataWithBuyJs:(NSDictionary*)data;
//跳转预购买页代理
- (void)handleDataWithPreBuyJs:(NSDictionary*)data;
//跳转优惠劵代理
- (void)handleDataWithVouchersJs:(NSDictionary*)data;
//跳转活期历史代理
- (void)handleDataWithCurrentHistoryJs:(NSDictionary*)data;
//跳转绑卡页代理
-(void)handleDataWithAddBankCardJs:(NSDictionary *)data;
//跳转充值页代理
-(void)handleDataWithRechargeJs:(NSDictionary *)data;
//跳转转让变现代理
-(void)handleDataWithTransferJs:(NSDictionary *)data;

//展示分享代理方法
- (void)showShareWithJSData:(NSDictionary*)data;
//关闭分享代理方法
- (void)closeShareWithJSData;
//网页内分享代理方法
- (void)ShareInWebWithJSData:(NSDictionary*)data;
//网页内弹出登陆
- (void)showLoginWithJSData:(NSDictionary*)data;
//网页调用原生发短信
- (void)showSmsWithJSData:(NSDictionary*)data;
//网页内直接open原生分享
- (void)openShareWithJSData:(NSDictionary*)data;
//网页内关闭navgaition
- (void)closeTopNav;
//网页内回到rootViewController或者回到上一页，依据type来区分
- (void)popRootWithNavWithJSData:(NSDictionary *)data;
//设置navgation成格子图片
- (void)setToolBarImg;

/// 唤醒转让变现计算器
- (void)calculator:(NSDictionary*)data;
/// 债权转让 取出收益
- (void)transfer:(NSString*) params;
/// 唤醒转让客服界面
- (void)UDesk;
@end

@interface MyJSData : NSObject
@property (weak, nonatomic) id<JsDataDelegate> delgegate;
@end
